package cn.jly.spring.annotation.ioc.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author lanyangji
 * @description student，测试注入外部配置文件
 * @date 2020/11/13 上午 10:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
public class Student {
    @Value("${s.name}")
    private String name;
    @Value("${s.nickname}")
    private String nickname;
    @Value(("${s.age}"))
    private Integer age;
    @Value("${s.gender}")
    private Integer gender;
    @Value("${s.email}")
    private String email;
}
